package com.hnchances.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author testjava
 * @since 2022-08-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id自增，key")
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户名")
    @TableField("userName")
    private String userName;

    @ApiModelProperty(value = "密码，md5")
    @TableField("passWord")
    private String passWord;

    @ApiModelProperty(value = "电话号码11位")
    private String phone;

    @ApiModelProperty(value = "真实姓名")
    @TableField("trueName")
    private String trueName;

    @ApiModelProperty(value = "0-学生，1-老师，2-领导或管理（可看所有班级）")
    private Integer identity;

    @ApiModelProperty(value = "班级关联ID")
    @TableField("classID")
    private Integer classID;

    @ApiModelProperty(value = "课程ID")
    @TableField("courseID")
    private Integer courseID;

    @ApiModelProperty(value = "学生ID")
    @TableField("studentID")
    private Integer studentID;

    @ApiModelProperty(value = "注册日期")
    @TableField("creatDateTime")
    private Date creatDateTime;

    @ApiModelProperty(value = "修改日期")
    @TableField("updateDateTime")
    private Date updateDateTime;

    @ApiModelProperty(value = "最后登录时间")
    @TableField("lastLoginDateTime")
    private Date lastLoginDateTime;

    @ApiModelProperty(value = "ipv4")
    @TableField("loginIP")
    private String loginIP;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updateByID")
    private Long updateByID;


    @TableLogic(value = "0",delval = "1")
    @ApiModelProperty(value = "0-正常，1-删除")
    private Integer status;

    @ApiModelProperty(value = "0-未审核,1-审核")
    private Integer verify;



}
